package com.example.lcpharmacy.mapper;

import com.example.lcpharmacy.entity.GoodsCategoryEntity;
import com.example.lcpharmacy.entity.GoodsInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsCategoryDao {
    List<GoodsCategoryEntity> selectCategory();

    int deleteByCode(@Param("categoryCode") String categoryCode);

    int updateCodeById(GoodsCategoryEntity goodsCategoryEntity);

    List<GoodsCategoryEntity> checkUpdateCode(GoodsCategoryEntity goodsCategoryEntity);

    List<GoodsCategoryEntity> checkUpdateName(GoodsCategoryEntity goodsCategoryEntity);

    int insertCategory(GoodsCategoryEntity goodsCategoryEntity);
}
